import { createRouter, createWebHistory } from "vue-router";
const Layout = () => import("../layout/index.vue");

const router = new createRouter({
  history: createWebHistory(),
  routes: [
    {
      path: "/login",
      name: "Login",
      component: () => import("../views/login/index.vue"),
    },
    {
      path: "/",
      name: "",
      component: Layout,
      children: [
        {
          path: "/dashboard",
          name: "Dashboard",
          component: () => import("../views/dashboard/index.vue"),
        },
        {
          path: "/user",
          name: "User",
          component: () => import("../views/system/user/index.vue"),
        },
      ]
    },
  ],
});

export default router;
